package com.game.messagebean.hall;

import com.baidu.bjf.remoting.protobuf.FieldType;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import com.game.message.jpb.SuperJPB;
import com.game.message.messagecode.HallMsg;
import com.game.message.messagecode.MsgStage;
import org.springframework.stereotype.Component;

/**
 * Created by legend9999 on 2016/4/25.
 */
@Component
public class LoginResp extends SuperJPB {
	@Protobuf(fieldType = FieldType.BOOL, order = 101, required = true)
	private boolean result;
	@Protobuf(fieldType = FieldType.STRING, order = 103, required = true)
	private String message;
	@Protobuf(fieldType = FieldType.INT64, order = 104, required = true)
	private long serverTime;

	public int getMsgId() {
		return MsgStage.ACK + HallMsg.LOGIN;
	}

	public boolean isResult() {
		return result;
	}

	public void setResult(boolean result) {
		this.result = result;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public long getServerTime() {
		return serverTime;
	}

	public void setServerTime(long serverTime) {
		this.serverTime = serverTime;
	}

}
